<?php include_once 'inc/header.inc.php';?>
    <div class="tm-about-img-container">
    </div>
    <div class="nav" style="width: 100%;height:10px;"></div>
    <style type="text/css">
        .warp{
	        margin:0 auto;
        	width:960px;
           
        }
        .pic{
        	float:left;
	       width:290px;
           height:200px;
        	
        }
        .container{
	       float:right;
        	width:660px;
        	height:200px;
        	
    </style>

    <?php include_once 'design.admin.php';?>
         <?php 
    	$id=$_GET['id'];
    	//echo $id;
    	$ItemModle = new ItemModel();
    	$con=$ItemModle -> getInfoById($id);
    	?>
    <div class="warp">
        <div class="pic">
        <img src="public/img/<?php echo mt_rand(1,4); ?>.jpg" alt="Image" class="tm-margin-b-20 img-fluid">
        </div>
        <div class="container">
            <div class="title">
                                        标题： <?php echo $con['title']; ?>
            </div>
            <div id="content">
                                        内容: <?php echo htmlspecialchars_decode( $con['content']); ?>
            </div>
            
        </div>
    </div>
    
<?php include_once 'inc/footer.inc.php';?>